<template>
  <div class="error-container">
    <div class="error-content">
      <h1>404</h1>
      <h2>页面不存在</h2>
      <p>抱歉，您访问的页面不存在或已被删除</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Page404',
  methods: {
    goHome() {
      const role = localStorage.getItem('role')
      if (role === 'admin') {
        this.$router.push('/admin/dashboard')
      } else {
        this.$router.push('/leader/dashboard')
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f7fa;
  
  .error-content {
    text-align: center;
    
    h1 {
      font-size: 120px;
      color: #409EFF;
      margin: 0;
    }
    
    h2 {
      font-size: 30px;
      color: #333;
      margin: 20px 0;
    }
    
    p {
      font-size: 16px;
      color: #666;
      margin-bottom: 30px;
    }
  }
}
</style> 